for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
import { Entity, Column, PrimaryGeneratedColumn, ManyToOne } from 'typeorm';
@Entity()
export class Customer {
@PrimaryGeneratedColumn('uuid')
private id: string;
@Column({ type: 'varchar', nullable: false })
private name: string;
@Column({ type: 'timestamp', default: () => 'CURRENT_TIMESTAMP' })
private createdAt: Date;
constructor(name: string) {
this.name = name;
}
public getId(): string {
return this.id;
public getName(): string {
return this.name;
public getCreatedAt(): Date {
return this.createdAt;
public updateName(name: string): void {